package cn.stylefeng.guns.modular.demo.excel.domain;

import cn.stylefeng.guns.modular.demo.excel.converter.YesNoConverter;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.format.NumberFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class StockExcelVO implements Serializable {
    @ExcelProperty("进货日期")
    @DateTimeFormat("yyyy/MM/dd")
    private Date saleTime;

    @ExcelProperty(value = "商品编码")
    private String commodityCode;

    @ExcelProperty(value = "商品名称")
    private String commodityName;


    @ExcelProperty(value = "入库价")
    @NumberFormat("#.##")
    private Double price;

    @ExcelProperty(value = "批次号")
    private String batchNo;

    @ExcelProperty(value = "入库类型", converter = SaleTypeConverter.class)
    private Integer saleType;

    @ExcelProperty(value = "数量")
    private Integer num;

    @ExcelProperty(value = "供应商编号")
    private String supplierCode;

    @ExcelProperty(value = "是否参与返利计算", converter = YesNoConverter.class)
    private Integer canRebate;

}
